﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface ITCompanyRepository: IBaseRepository<TCompany>
    {
        /// <summary>
        /// 添加公司信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool AddTcompany(TCompany obj);
        /// <summary>
        /// 显示公司信息
        /// </summary>
        /// <param name="gname"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TCompany> GetTcompanyList(string gname,int pageIndex,int pageSize,out int totalCount);
        /// <summary>
        /// 修改公司信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool UpdateTcompany(TCompany obj);
        /// <summary>
        /// 删除公司信息
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        bool DelTcompany(int uid);
        /// <summary>
        /// 根据id获取公司信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        TCompany GetTcompanyById(int id);

        List<TCompany> GetTcompanyList();
    }
}
